<style>
    .mytitle{
        display: none;
    }
</style>
<!-- 数据表格 -->
<table cellspacing="1" class="mylist2">
		<tr class="mylist_title">
			<td>序号</td>
                        <td>用户识别码</td>
                        <td>订单编号</td>
			<td>姓名</td>
			<td>电话</td>
                        <td>性别</td>
                        <td>消费总金额</td>
                        <td>消费时间</td>
		</tr>
	<tbody>
		<?php foreach ($data->getData() as $key => $value) {?>
		<tr class="datalist">
			<td><?php echo CHtml::encode($value->id);?></td>
                        <td><?php echo CHtml::encode($value->party->user_code);?></td>
                        <td><?php echo CHtml::encode($value->order_number);?></td>
			<td><?php echo CHtml::encode($value->party->username);?></td>
			<td><?php echo CHtml::encode($value->party->phone);?></td>
                        <td><?php echo CHtml::encode($value->party->sex);?></td>
                        <td><?php echo CHtml::encode(Sale::model()->getTotals($value->party_id));?></td>
                        <td><?php echo CHtml::encode($value->add_time);?></td>
		</tr>
		<?php }?>
	</tbody>
</table>
<!-- 数据表格 -->

<!-- 数据分页 -->
<div class="mylist_foot">
	<div class="pagecss fr">
	<?php $this->widget("CLinkPager", array(
        "pages" => $data->pagination,
        "header"=>"跳转到：",
        "prevPageLabel"=>"&lt; 上一页",
        "nextPageLabel"=>"&gt; 下一页",
        "firstPageLabel"=>"&lt;&lt; 首页",
        "lastPageLabel"=>"&gt;&gt; 尾页",
        "maxButtonCount"=>5,
        "footer"=>"当前页数：".($data->pagination->currentPage+1)." 总页数：".$data->pagination->pageCount." 总记录数：".$data->pagination->itemCount
    )) ?>
	</div>
</div>

<?php if(Yii::app()->user->hasFlash('success'))
        echo "<script> art.dialog({
        id: 'dialogTest',
        title: '提示信息',
        time: 5,
        icon: 'succeed',
        content: '<b>操作成功！</b><br /><br />该消息5秒后自动消失！',
        button: [
            {
                name: '确定',
                focus: true
            }]
    });</script>" 

?><!-- 数据分页 -->
<!-- 脚本 -->
<script type="text/javascript">
    function deleteSelect(id){
        ajaxSubmitdeleteSelect(id,'<?php echo Yii::app()->createUrl('party/delete',array('id'=>0)) ?>
');
    }
</script>
<!-- 脚本 -->
